package com.bbva.gptf.back.transformador;

import org.springframework.core.convert.converter.Converter;

import com.bbva.gptf.back.dominio.Tgpt020ConfiVista;
import com.bbva.gptf.back.dominio.Tgpt020ConfiVistaPK;
import com.bbva.gptf.dto.bean.ColumnaVista;

public class TransformadorTgpt020ConfiVista implements
		Converter<ColumnaVista, Tgpt020ConfiVista> {

	@Override
	public Tgpt020ConfiVista convert(ColumnaVista source) {
		Tgpt020ConfiVista tgpt020ConfiVista = new Tgpt020ConfiVista();
		final Tgpt020ConfiVistaPK id = new Tgpt020ConfiVistaPK(
				source.getCdGestor(), source.getCdVista(),
				source.getCdGpoColumna(), source.getCdColumna());
		tgpt020ConfiVista.setId(id);
		tgpt020ConfiVista.setNuOrden(source.getNuOrden());
		tgpt020ConfiVista.setStVisible(source.getStVisible());
		return tgpt020ConfiVista;
	}

}
